
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>基础环境 · gitbook笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="fanzhongdeqiuchun">
        <meta name="identifier" content="图书编号-1" scheme="ISBN">
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chap2/chap2.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3" data-path="chap1.html">
            
                <a href="chap1.html">
            
                    
                    基础环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chap2/chap2.html">
            
                <a href="chap2/chap2.html">
            
                    
                    项目环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chap2/section1_vscode.html">
            
                <a href="chap2/section1_vscode.html">
            
                    
                    VSCode编写Markdown文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chap2/section2_gitbookplugin.html">
            
                <a href="chap2/section2_gitbookplugin.html">
            
                    
                    gitbook插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="chap2/section3_run.html">
            
                <a href="chap2/section3_run.html">
            
                    
                    运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="chap3/chap3.html">
            
                <a href="chap3/chap3.html">
            
                    
                    发布
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="chap3/section1_giteepage.html">
            
                <a href="chap3/section1_giteepage.html">
            
                    
                    Gitee Page
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="chap3/section2_nginx.html">
            
                <a href="chap3/section2_nginx.html">
            
                    
                    Nginx服务部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="chap3/section3_pdf.html">
            
                <a href="chap3/section3_pdf.html">
            
                    
                    生成pdf
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >基础环境</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x73AF;&#x5883;&#x5B89;&#x88C5;">&#x73AF;&#x5883;&#x5B89;&#x88C5;</h1>
<h2 id="&#x5B89;&#x88C5;nodejs">&#x5B89;&#x88C5;node.js</h2>
<p>&#x7531;&#x4E8E;gitbook&#x5F88;&#x4E45;&#x6CA1;&#x6709;&#x66F4;&#x65B0;&#xFF0C;&#x6240;&#x4EE5;&#x5B83;&#x4E0D;&#x652F;&#x6301;&#x7248;&#x672C;&#x8F83;&#x9AD8;&#x7684;node.js&#x3002;&#x4E3A;&#x4E86;&#x6EE1;&#x8DB3;&#x5176;&#x4ED6;&#x5F00;&#x53D1;&#x9700;&#x6C42;&#xFF0C;&#x6240;&#x4EE5;&#x8FD8;&#x9700;&#x8981;&#x5B89;&#x88C5;<strong>nvm</strong>&#x8FD9;&#x4E2A;&#x7684;node.js&#x7248;&#x672C;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#x3002;<br>&#x7248;&#x672C;&#xFF1A;<br><strong><em>10.23.1</em></strong> &#x4EE5;&#x4E0B;&#xFF08;&#x5DF2;&#x9A8C;&#x8BC1;&#x8FC7;&#xFF09;<br>&#x4E0B;&#x8F7D;&#xFF1A;<br><a href="https://nodejs.org/zh-cn/download" target="_blank">https://nodejs.org/zh-cn/download</a></p>
<h2 id="&#x5B89;&#x88C5;nvm&#x548C;&#x4F7F;&#x7528;">&#x5B89;&#x88C5;nvm&#x548C;&#x4F7F;&#x7528;</h2>
<p>&#x4ECB;&#x7ECD;&#xFF1A;
node.js&#x7248;&#x672C;&#x5207;&#x6362;&#x7BA1;&#x7406;&#x5DE5;&#x5177;</p>
<p>&#x4E0B;&#x8F7D;&#xFF1A;<br><a href="https://github.com/coreybutler/nvm-windows/releases" target="_blank">https://github.com/coreybutler/nvm-windows/releases</a></p>
<p>&#x4F7F;&#x7528;&#xFF1A;</p>
<pre><code>--&#x67E5;&#x8BE2;&#x5E2E;&#x52A9;&#x547D;&#x4EE4;
nvm -h

--&#x5B89;&#x88C5;node.js
nvm install 10.23.1

--&#x5217;&#x51FA;node.js&#x5DF2;&#x5B89;&#x88C5;&#x7684;&#x7248;&#x672C;
nvm list

--&#x628A;node.js@10.23.1&#x5207;&#x6362;&#x4E3A;&#x5F53;&#x524D;&#x7248;&#x672C;
nvm use 10.23.1

--&#x67E5;&#x8BE2;&#x5F53;&#x524D;&#x7248;&#x672C;
nvm current

--&#x914D;&#x7F6E;&#x955C;&#x50CF;node&#xFF0C;&#x4F18;&#x5316;&#x7F51;&#x7EDC;&#x901F;&#x5EA6;
nvm node_mirror https://npmmirror.com/mirrors/node/
--&#x914D;&#x7F6E;&#x955C;&#x50CF;npm&#xFF0C;&#x540C;&#x4E0A;
nvm npm_mirror https://npmmirror.com/mirrors/npm/
</code></pre><p>&#x8BBE;&#x7F6E;&#x955C;&#x50CF;&#x6CA1;&#x6709;&#x6548;&#x679C;&#xFF0C;&#x53EF;&#x80FD;&#x8981;&#x901A;&#x8FC7;npm&#x7684;&#x547D;&#x4EE4;&#x6765;&#x8BBE;&#x7F6E;&#x3002;  </p>
<p>&#x5B89;&#x88C5;&#x95EE;&#x9898;&#xFF1A;<br>&#xFF08;1&#xFF09;&#x5207;&#x6362;node.js&#x7248;&#x672C;&#x5931;&#x8D25;<br>&#xB7; &#x539F;&#x56E0;&#x662F;node.js&#x5148;&#x4E8E;nvm&#x5B89;&#x88C5;&#xFF0C;&#x6240;&#x4EE5;&#x4E0D;&#x53D7;nvm&#x63A7;&#x5236;&#x3002;&#x9700;&#x8981;&#x628A;&#x539F;&#x6709;&#x7684;node.js&#x5378;&#x8F7D;&#x4E86;&#xFF0C;&#x901A;&#x8FC7;nvm&#x5B89;&#x88C5;&#x3002;<br>&#xB7; &#x4E4B;&#x524D;&#x5B89;&#x88C5;&#x8FC7;&#xFF0C;&#x9700;&#x8981;&#x628A;&#x539F;&#x6765;&#x5B58;&#x5728;&#x7684;&#x8DEF;&#x5F84;&#x548C;&#x6587;&#x4EF6;&#x5220;&#x6389;&#x3002;</p>
<blockquote>
<p>&#x6587;&#x4EF6;&#xFF1A;</p>
<p>C:\Users\xxx\.npmrc</p>
<p>&#x8DEF;&#x5F84;&#xFF1A;</p>
<p>C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\&#x7528;&#x6237;&#x540D;\AppData\Roaming\npm
C:\Users\&#x7528;&#x6237;&#x540D;\AppData\Roaming\npm-cache  </p>
</blockquote>
<h2 id="npm&#x8BBE;&#x7F6E;">npm&#x8BBE;&#x7F6E;</h2>
<pre><code>//&#x8BBE;&#x7F6E;&#x955C;&#x50CF;
npm config set registry https://registry.npm.taobao.org
</code></pre><h2 id="&#x5B89;&#x88C5;gitbook">&#x5B89;&#x88C5;gitbook</h2>
<p>&#x4ECB;&#x7ECD;&#xFF1A;
&#x8FD9;&#x662F;node.js&#x7684;&#x63D2;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x4ECE;npmjs&#x5B98;&#x7F51;&#x4E0A;&#x641C;&#x7D22;&#x5230;&#x3002;gitbook&#x76F8;&#x5173;&#x63D2;&#x4EF6;&#x4E5F;</p>
<p>&#x7F51;&#x5740;&#xFF1A;
<a href="https://www.npmjs.com/package/gitbook?activeTab=readme" target="_blank">https://www.npmjs.com/package/gitbook?activeTab=readme</a></p>
<p>&#x5B89;&#x88C5;&#xFF1A;</p>
<pre><code>-- &#x6CE8;&#x610F;&#x662F;&#x201C;gitbook-cli&#x201D;&#xFF0C;&#x4E0D;&#x662F;&#x201C;gitbook&#x201D;&#xFF0C;&#x201C;-g&#x201D;&#x8868;&#x793A;&#x5168;&#x5C40;
npm install -g gitbook-cli
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 介绍">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chap2/chap2.html" class="navigation navigation-next " aria-label="Next page: 项目环境">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"基础环境","level":"1.3","depth":1,"next":{"title":"项目环境","level":"1.4","depth":1,"path":"chap2/chap2.md","ref":"chap2/chap2.md","articles":[{"title":"VSCode编写Markdown文件","level":"1.4.1","depth":2,"path":"chap2/section1_vscode.md","ref":"chap2/section1_vscode.md","articles":[]},{"title":"gitbook插件","level":"1.4.2","depth":2,"path":"chap2/section2_gitbookplugin.md","ref":"chap2/section2_gitbookplugin.md","articles":[]},{"title":"运行","level":"1.4.3","depth":2,"path":"chap2/section3_run.md","ref":"chap2/section3_run.md","articles":[]}]},"previous":{"title":"介绍","level":"1.2","depth":1,"path":"index.md","ref":"index.md","articles":[]},"dir":"ltr"},"config":{"plugins":["search-pro","code","expandable-chapters","back-to-top-button","flexible-alerts"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-pro":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"fontSettings":{"theme":"night","family":"sans","size":4},"highlight":{},"back-to-top-button":{},"flexible-alerts":{"style":"flat","note":{"label":"Note","icon":"fa fa-info-circle","className":"info"},"tip":{"label":"Tip","icon":"fa fa-lightbulb-o","className":"tip"},"warning":{"label":"Warning","icon":"fa fa-exclamation-triangle","className":"warning"},"danger":{"label":"Attention","icon":"fa fa-ban","className":"danger"}},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"fanzhongdeqiuchun","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"isbn":"图书编号-1","variables":{},"title":"gitbook笔记","gitbook":"*","description":"gitbook笔记"},"file":{"path":"chap1.md","mtime":"2023-05-14T17:02:52.695Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-05-14T17:03:21.954Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

